package cn.hquanheng.java_base.day06;

import org.junit.Test;

public class Text {
	@Test
	public void text() {
		Prorammer p=new Prorammer();
		p.programmer();
		p.setName("码农");
		System.out.println(p.getName());
		
	}
	@Test
	public void text2() {
		Prorammer p=new Prorammer();
		p.setSalary(10000);
		p.setBonus(8000);
		System.out.println(p.getSalary());
	}
	@Test
	public void text3() {
		double i=1.2;
		System.out.println("double i:"+i);
		System.out.println("int i:"+(int)i);
		System.out.println("i/2="+i/2);
		int j=(int)i;
		System.out.println("j/2="+j/2);
		}
}
	
